public class Test {
    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addFirst(7);
        myLinkedList.addFirst(6);
        myLinkedList.addFirst(5);
        myLinkedList.addFirst(4);
        myLinkedList.addFirst(3);
        myLinkedList.addFirst(2);
        myLinkedList.addFirst(1);
        myLinkedList.display();

        System.out.println("==========================");
        myLinkedList.addIndex(5,9);
        myLinkedList.display();
        System.out.println("==========================");

        System.out.println(myLinkedList.contains(9));
        System.out.println(myLinkedList.contains(7));
        System.out.println(myLinkedList.contains(11));
        System.out.println("==========================");
        myLinkedList.remove(9);
        myLinkedList.display();

    }
}
